<template>
	<view class="messagePages">
		<view class="ul">
			<view class="li" v-for="(item,index) in messageList" :key="index">
				<view class="lf">
					<image :src="item.img" class="img"></image>
					<view class="messageContent">
						<view class="title">{{item.title}}</view>
						<view class="titles">{{item.titles}}</view>
					</view>
				</view>
				<view class="timeContent">
					<view class="time">09:05</view>
					<span></span>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messageList:[
					{id:1,img:'../../static/message/icon1.png',title:'您购买的商品已发货',titles:'您购买的sk2神仙水已发货哦～'},
					{id:2,img:'../../static/message/icon2.png',title:'消费券发放',titles:'您已成功获得一张50元满减券！'},
					{id:3,img:'../../static/message/icon3.png',title:'您的包裹已送达',titles:'您有一个韵达包裹已送达驿站，请前往签收。'},
					{id:4,img:'../../static/message/icon1.png',title:'您购买的商品已发货',titles:'您购买的sk2神仙水已发货哦～'},
					{id:5,img:'../../static/message/icon2.png',title:'消费券发放',titles:'您已成功获得一张50元满减券！'},
					{id:6,img:'../../static/message/icon3.png',title:'您的包裹已送达',titles:'您有一个韵达包裹已送达驿站，请前往签收。'},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scope>
  .messagePages {
		display: flex;
		flex-direction: column;
		align-items: center;
		.ul {
			margin-top: 26rpx;
			.li {
				padding: 20rpx;
				display: flex;
				justify-content: space-between;
				width: 650rpx;
				height: 110rpx;
				background: #F4F8FF;
				box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(23, 119, 255, 0.06);
				border-radius: 8rpx;
				margin-bottom: 24rpx;
				.lf {
					display: flex;
					align-items: center;
					.img {
						width: 76rpx;
						height: 76rpx;
						margin-right: 20rpx;
					}
					.messageContent {
						.title {
							font-size: 28rpx;
							font-family: PingFangSC-Medium, PingFang SC;
							font-weight: 500;
							color: #1A1A1A;
							line-height: 40rpx;
						}
						.titles {
							margin-top: 8rpx;
							font-size: 24rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #656C74;
							line-height: 33rpx;
						}
					}
				}
				
				.timeContent {
					margin-top: 10rpx;
					display: flex;
					flex-direction: column;
					align-items: flex-end;
					.time {
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #B9B9B9;
						line-height: 33rpx;
					}
					span {
						margin-top: 28rpx;
						display: inline-block;
						width: 16rpx;
						height: 16rpx;
						background: #EE3930;
						border-radius: 50%;
					}
				}
			}
		}
	}
</style>
